package com.boco.pciv.entity.sys;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;


/**
 * 资源信息表
 * 
 * @author pciv
 * @email pciv@boco.com.cn
 * @date 2018-07-10 08:56:41
 */
public class ResInfo implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//资源id
	private String id;
	//资源名
	@NotBlank(message="资源名称不能为空")
	private String name;
	//父节点
	@NotBlank(message="上层资源不能为空")
	private String parentId;
	//父节点名称
	private String parentName;
	//
    @Min(value = 1,message="排序必须为大于0数字")
	private Integer rank;
	//状态：1:启用;0:停用
	private Integer state;
	//url地址
	private String url;
	//页面操作授权:如：user:list,user:create
	private String perms;
	//0:模块 1:菜单 2:按钮
	private Integer type;
	//
	private Integer levelId;
	//
	private String icon;
	//创建人
	private String createUser;
	//创建时间
	private Date createTime;
	//修改人
	private String updateUser;
	//修改时间
	private Date updateTime;

	public void setId(String id) {
		this.id = id;
	}
	public String getId() {
		return id;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
	public String getParentId() {
		return parentId;
	}
    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }
    public void setRank(Integer rank) {
		this.rank = rank;
	}
	public Integer getRank() {
		return rank;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	public Integer getState() {
		return state;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getUrl() {
		return url;
	}
	public void setPerms(String perms) {
		this.perms = perms;
	}
	public String getPerms() {
		return perms;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public Integer getType() {
		return type;
	}
	public void setLevelId(Integer levelId) {
		this.levelId = levelId;
	}
	public Integer getLevelId() {
		return levelId;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public String getIcon() {
		return icon;
	}
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	public String getCreateUser() {
		return createUser;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}
	public String getUpdateUser() {
		return updateUser;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
}
